package com.huatai.bpmn.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bpmn.entity.TbCompleteTaskStatusEntity;
import com.huatai.bpmn.entity.YYDataInfoEntity;
import com.huatai.bpmn.entity.vo.DataVo;
import com.huatai.common.entity.UserInfo;

import java.util.List;

/**
* @author 聂贞吉
* @description 针对表【tb_complete_task_status】的数据库操作Service
* @createDate 2023-07-11 19:57:25
*/
public interface YYDataInfoService extends IService<YYDataInfoEntity> {
	/**
	 * 根据用户，项目流程key获取流程id
	 * @param myKey
	 * @return
	 */
	JSONObject getDataList(String myKey, UserInfo user, String departName, int pgIndex, int pgSize, DataVo dataVo);

	/**
	 * 根据flowId删除数据
	 * @param flowId
	 */
    void removeByFlowId(String flowId);
	/**
	 * 数据转入实施库
	 *	@param flowId
	 * @return
	 */
	boolean shiftSS(String flowId, String table);

	List<String> myKeyList(String myKey);

	List<String> yearListByDepart(String deptName,String str);

	YYDataInfoEntity getBusinessKey(String businessKey);

	List<String> tdYearList(int year);

	List<String> listByYear(int year,String myKey);

	List<String> ListByDepart(String deptName,int year);

}
